Reverse Bits - Leetcode 190 - Python